# -*- coding: utf-8 -*-



import wda
print ('aaaaa')
c = wda.Client('http://172.16.229.82:8100')
# com.duiaguanwang.CJKJ
print (c.status())
# c.screenshot('screen.png')

# 列出所有app  命令行c
# ideviceinstaller -l
# c.swipe(0, 0, 50, 50, 0.5)

with c.session('com.google.ios.youtube') as s:
    print (s.orientation)

    # s(xpath='//TabBar/Button[5]').click()